package com.hundredapp.oa.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * OaReturnVisit entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oa_return_visit", catalog = "oa_demo")
public class OaReturnVisit implements java.io.Serializable {

	// Fields

	private Integer id;
	private OaReserve oaReserve;
	private String RVisitContent;
	private Timestamp RVisitTime;
	private Integer createUserId;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public OaReturnVisit() {
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "reserve_id")
	public OaReserve getOaReserve() {
		return this.oaReserve;
	}

	public void setOaReserve(OaReserve oaReserve) {
		this.oaReserve = oaReserve;
	}

	@Column(name = "r_visit_content", length = 65535)
	public String getRVisitContent() {
		return this.RVisitContent;
	}

	public void setRVisitContent(String RVisitContent) {
		this.RVisitContent = RVisitContent;
	}

	@Column(name = "r_visit_time", length = 19)
	public Timestamp getRVisitTime() {
		return this.RVisitTime;
	}

	public void setRVisitTime(Timestamp RVisitTime) {
		this.RVisitTime = RVisitTime;
	}

	@Column(name = "create_user_id")
	public Integer getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}